package cn.javass.dp.strategy.example5;

public class Card2Cash implements PaymentStrategy {
    private String account = "";

    public Card2Cash(String account) {
        this.account = account;
    }

    @Override
    public void pay(PaymentContext ctx) {
        System.out.println("现在给" + ctx.getUserName() +"银行卡"+this.account+"支付" + ctx.getMoney()+"元");
    }
}
